home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / programr / appsrcs.zip / APPTASK.ZIP / APPTASK.H < prev    next >
C/C++ Source or Header  |  1993-03-15  |  1KB  |  49 lines

  1. /* apptask.h */
  2.  
  3. #define IDC_LISTBOX 100
  4. #define IDC_BUTTONS 200
  5.  
  6. #define IDS_OK        300
  7. #define IDS_CANCEL  301
  8. #define IDS_HELP    302
  9. #define IDS_REPLACE 303
  10. #define IDS_ALL     304
  11. #define IDS_DEACT   305
  12. #define IDS_CLOSE   306
  13. #define IDS_DESTROY 307
  14. #define IDS_QUIT    308
  15.  
  16. char szBuffer[256];
  17. int ShowAll;
  18. int CloseDeAct;
  19. int CloseMode;
  20.  
  21. int temp;
  22.  
  23. #define WITHIN(val, min, max)      (((temp=val) > max ? max : (temp < min) ? min : temp))
  24. #define ONEORZERO(val)          WITHIN(val, 0, 1)
  25.  
  26. extern    HINSTANCE hInst;
  27. extern    HWND hWndAppTask;
  28.  
  29. /* defined in AppTask.c */
  30. extern    int  PASCAL WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpszCmdLine, int nCmdShow);
  31. extern    long WINAPI WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam);
  32. extern void UpdateListBox(HWND hWndListBox);
  33.  
  34. /* defined in AppTools.c*/
  35. extern VOID OkMsgBox(char *szCaption, char *szFormat, ...);
  36.  
  37. /* defined in setup.c */
  38. extern BOOL WINAPI SetupDlgProc(HWND, UINT, WPARAM, LPARAM);
  39.  
  40. /* defined in AppClose.c */
  41. extern long WINAPI WaitForWMCloseWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam);
  42. extern VOID PASCAL WaitForWMClose(HWND hWndClose);
  43. extern BOOL PASCAL CloseApp(HWND hWndClose);
  44.  
  45. /* Undocumented Windows function in taskman.exe (PCM/FEB92) */
  46. extern BOOL WINAPI IsWinOldApTask(HTASK);
  47.  
  48. #define IsDosWindow(hWnd)   IsWinOldApTask(GetWindowTask(hWnd))
  49.